package com.yyzw.activiti.modeler.model;

import java.util.Date;

public class MyTaskVo {

    private String id;

    private String name;

    private Date createTime;

    private String assignee;

    private String processInstanceId;

    private String processDefinitionId;

    private String description;

    private String category;

    private String userName;

    private String applyName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getApplyName() {
        return applyName;
    }

    public void setApplyName(String applyName) {
        this.applyName = applyName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }


    public MyTaskVo(String id, String name, Date createTime, String assignee, String processInstanceId, String processDefinitionId, String description, String category, String userName, String applyName) {
        this.id = id;
        this.name = name;
        this.createTime = createTime;
        this.assignee = assignee;
        this.processInstanceId = processInstanceId;
        this.processDefinitionId = processDefinitionId;
        this.description = description;
        this.category = category;
        this.userName = userName;
        this.applyName = applyName;
    }

    public MyTaskVo() {
    }

    public MyTaskVo(org.activiti.engine.task.Task t) {
        this.id=t.getId();
        this.name=t.getName();
        this.createTime=t.getCreateTime();
        this.assignee=t.getAssignee();
        this.processInstanceId=t.getProcessInstanceId();
        this.processDefinitionId=t.getProcessDefinitionId();
        this.description=t.getDescription();
        this.category=t.getCategory();
    }
}
